Mark gtk_widget_style_attach() as deprecated.
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 10 Jan 2011 22:11:00 +0000 (23:11 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 10 Jan 2011 22:51:48 +0000 (23:51 +0100)
This isn't needed anymore.

gtk/gtkwidget.c
gtk/gtkwidget.h

index d1eee5b432de83b6f95fb279097f94c5ec46b290..45b548a054f693556a8468e3111b46dc0558212e 100644 (file)
@@ -7792,6 +7792,8 @@ gtk_widget_get_parent (GtkWidget *widget)
  * (finally #GtkWidget) would attach the style itself.
  *
  * Since: 2.20
+ *
+ * Deprecated: 3.0. This step is unnecessary with #GtkStyleContext.
  **/
 void
 gtk_widget_style_attach (GtkWidget *widget)
index 090cc3b5444ce6a5d8b472af7ba8e83c05558a38..269807fea62e9d7334dfcda37fc840f74c13c7aa 100644 (file)
@@ -784,11 +784,10 @@ void         gtk_widget_override_cursor           (GtkWidget       *widget,
                                                    const GdkRGBA   *cursor,
                                                    const GdkRGBA   *secondary_cursor);
 
+#if !defined(GTK_DISABLE_DEPRECATED) || defined(GTK_COMPILATION)
 
 void        gtk_widget_style_attach               (GtkWidget     *widget);
 
-#if !defined(GTK_DISABLE_DEPRECATED) || defined(GTK_COMPILATION)
-
 /* Widget styles.
  */
 gboolean    gtk_widget_has_rc_style       (GtkWidget            *widget);